import request from '../utils/request'
import { HttpMethod } from '../utils/http'


export default {
  // 前台评价
  saveMemberOrderEvaluation (data) {
    return request({
      url: '/beauty/orderEvaluation/saveMemberOrderEvaluation',
      method: HttpMethod.POST,
      data
    })
  },
  // 前台获取指定商品的评价信息
  getProductEvaluations (productId) {
    return request({
      url: '/beauty/orderEvaluation/getProductEvaluations',
      method: HttpMethod.GET,
      params: {
        productId
      }
    })
  },
}
